package com.boot.mapper;

import com.boot.entity.Address;
import org.apache.ibatis.annotations.*;

import java.util.List;

//@Mapper:让SpringBoot自动扫描识别到它
@Mapper
public interface AddressMapper {

    @Select("select id,name from t_address where id=#{id}")
    Address getById(Long id);

}
